package BehavioralPattern.Command.Calculator;

public class Adder {
    private int num = 0;

    // 加法操作，将每次传入的值与num作加法运算
    public int add(int value) {
        num += value;
        return num;
    }
}
